from flask import Flask,session

app = Flask(__name__)
app.secret_key = 'qwdfwnfwlkemklqwen'

@app.route('/index')
def index():
    return session['user_info']
@app.route('/login')
def login():
    user = "huhao123"
    session['user_info'] = user
    return "hello world" 

if __name__ == '__main__':
    app.run(debug=True)